<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>上传宿舍评分结果</title>
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
		<script>
			function checkOnSubmit(){
				var file=document.getElementById("uploadFile");
				if(null==file.value){
					alert("请选择上传文件！！");
					return false;
				}else{
					return true;
				}
			}
		</script>

	</head>

	<body>
		<div id="page_container">
			<h2>
				上传宿舍评分结果
			</h2>
			<s:form action="upload/uploadDormRatingResult.action" method="post"
				enctype="multipart/form-data" theme="simple"
				onsubmit="return checkOnSubmit();">
				<table class="table_common" width="600px">
					<!-- 
					<tr>
						<td  class="td_left" style="width:20%">
							文件标题：
						</td>
						<td  class="td_right" style="width:80%">
							<s:textfield name="title"></s:textfield>（可选）
						</td>
					</tr>
				 	-->
					<tr>
						<td class="td_left">
							选择Excel文件：
						</td>
						<td class="td_right">
							<s:file name="uploadedFile" id="uploadFile"></s:file>
						</td>
					</tr>
				</table>
				<s:submit cssClass="common_button" value="上传"></s:submit>
			</s:form>
		</div>
	</body>
</html>
